/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package structure;

/**
 *
 * @author Gary
 */
public class NodeDependency {
    private Variable first;
    private Variable second;
    private double dependency;

    public NodeDependency(Variable first,Variable second,double dependency){
        this.first = first;
        this.second = second;
        this.dependency = dependency;
    }

    public Variable getFirst(){
        return first;
    }

    public Variable getSecond(){
        return second;
    }

    public double getDependency(){
        return dependency;
    }

    @Override public String toString(){
        StringBuilder result = new StringBuilder();
        String NEW_LINE = System.getProperty("line.separator");

        result.append("First: " + first + " ");
        result.append("Second: " + second + " ");
        result.append("Dependency: " + dependency + "\n");

        return result.toString();
    }
}
